import type { GoodDetailInfo } from '@/api/detail/interface'
//查询参数
export interface SearchParams {
    keyword: string
    page: number,
    size: number,
    sortType: number,
    descSorted: boolean,
    categoryId: number,
    matchType: number,
    floorPrice: number,
    upperPrice: number,
    stillSearch: boolean,
    searchWordSource: number,
    categoryName?: string,
    parentCategoryId?:number,
    parentCategoryName?:string
}

export interface CategoryVO {
    id: number,
    superCategoryId: number,
    showIndex: number,
    name: string,
    frontName: string,
    frontNameIcon: null,
    frontDesc: string,
    bannerUrl: string
    level: string
}
export interface SearcherCategoryHitCount {
    categoryVO: CategoryVO
    count: 0
}
export interface SearcherResult{
    pagination: {
        page: number,
        size: number,
        totalPage: number,
        total: number,
        lastPage: boolean
    },
    result: GoodDetailInfo[],

}
export interface Directly {
    searcherCategoryHitCountList: SearcherCategoryHitCount[],
    searcherResult: SearcherResult
}
// 查询结果
export interface SearcherResults {
    directly: Directly
    searchParams: SearchParams

}